projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63fb5a7
)
mmc: constify & localize data
author
Mike Frysinger
<
[email protected]
>
Wed, 20 Oct 2010 01:15:53 +0000
(
01:15
+0000)
committer
Andy Fleming
<
[email protected]
>
Wed, 13 Apr 2011 11:35:22 +0000
(06:35 -0500)
These local vars need not be writable nor exported.
Signed-off-by: Mike Frysinger <
[email protected]
>
Signed-off-by: Andy Fleming <
[email protected]
>
drivers/mmc/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index 1355735a52e7bbeff7b7303bb83cd393567ebd04..e8bc4b869a2edbdff1496f72dd5c5762c3dd21f2 100644
(file)
--- a/
drivers/mmc/mmc.c
+++ b/
drivers/mmc/mmc.c
@@
-548,7
+548,7
@@
retry_scr:
/* frequency bases */
/* divided by 10 to be nice to platforms without floating point */
-int fbase[] = {
+
static const
int fbase[] = {
10000,
100000,
1000000,
@@
-558,7
+558,7
@@
int fbase[] = {
/* Multiplier values for TRAN_SPEED. Multiplied by 10 to be nice
* to platforms without floating point.
*/
-int multipliers[] = {
+
static const
int multipliers[] = {
0, /* reserved */
10,
12,